
import java.io.IOException;

import org.junit.Test;

import dnl.jexem.cmd.remote.SshCommandExcecution;
import dnl.jexem.remote.UserPasswordSessionInfo;
import dnl.jexem.remote.ssh.SshSession;

public class PG {

	@Test
	public void ddd() throws IOException, Exception {
		UserPasswordSessionInfo inf = new UserPasswordSessionInfo();
		inf.setHost("10.0.0.11");
		inf.setUserName("daniel");
		inf.setPassword("hereiam");
		SshSession sshSession = new SshSession(inf);
		sshSession.connect();
		SshCommandExcecution sshce = new SshCommandExcecution(sshSession, "ls");
		sshce.executeCommand();
		System.out.println(sshce.getAllOutputs());
	}

}
